package com.pth.service.impl;

import com.pth.dao.AdminDAO;
import com.pth.model.Admin;
import com.pth.service.AdminService;

public class AdminServiceImpl implements AdminService {

	private AdminDAO adminDAO;
	
	public void add(Admin admin) {

		adminDAO.save(admin);

	}

	public AdminDAO getAdminDAO() {
		return adminDAO;
	}

	public void setAdminDAO(AdminDAO adminDAO) {
		this.adminDAO = adminDAO;
	}

	public boolean login(Admin admin) {

		return adminDAO.login(admin);
		
		
		
	}

}
